package org.ecloud.base.hibernate.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Embeddable;

import org.ecloud.common.constants.StringPool;

import com.fasterxml.jackson.annotation.JsonFormat;

@Embeddable 
@Access(AccessType.PROPERTY)
public class Creatable implements Serializable {

	private static final long serialVersionUID = 6567919507435566421L;

    @Column(name="create_by_", nullable = false, length = 64)
	protected String createBy;
	@Column(name="create_ip_", nullable = false, length = 15)
	protected String createIp;
	@Column(name="create_time_", nullable = false)
	@JsonFormat(pattern = StringPool.DATE_FORMAT_DATETIME)
	protected Date createTime;
	
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public String getCreateIp() {
		return createIp;
	}
	public void setCreateIp(String createIp) {
		this.createIp = createIp;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
    
}
